package com.dupf.product.dao.smodel;

import com.dupf.product.common.constant.ProductCountryConstant;

import java.io.Serializable;

public class ProductExportParamDTO implements Serializable {

    private String brandName;
    private String manufacturer;
    private String country;
    private String feed;
    private String nodes1;
    private String nodes2;
    private String upcNode1;
    private String upcNode2;
    private String keyWord;

    public String getBrandName() {
        return brandName;
    }

    public void setBrandName(String brandName) {
        this.brandName = brandName;
    }

    public String getManufacturer() {
        return manufacturer;
    }

    public void setManufacturer(String manufacturer) {
        this.manufacturer = manufacturer;
    }

    public String getCountry() {
        return country;
    }

    public void setCountry(String country) {
        this.country = country;
    }

    public String getFeed() {
        return feed;
    }

    public void setFeed(String feed) {
        this.feed = feed;
    }

    public String getNodes1() {
        return nodes1;
    }

    public void setNodes1(String nodes1) {
        this.nodes1 = nodes1;
    }

    public String getNodes2() {
        return nodes2;
    }

    public void setNodes2(String nodes2) {
        this.nodes2 = nodes2;
    }

    public String getUpcNode1() {
        return upcNode1;
    }

    public void setUpcNode1(String upcNode1) {
        this.upcNode1 = upcNode1;
    }

    public String getUpcNode2() {
        return upcNode2;
    }

    public void setUpcNode2(String upcNode2) {
        this.upcNode2 = upcNode2;
    }

    public String getKeyWord() {
        return keyWord;
    }

    public void setKeyWord(String keyWord) {
        this.keyWord = keyWord;
    }

    public String getLanguage() {
        String language = "";

        for (ProductCountryConstant item : ProductCountryConstant.values()) {
            if (this.country.equalsIgnoreCase(item.shortName)) {
                language = item.language;
            }
        }
        return language;
    }
}